<div class="zs-body" data-ng-init="formInit('gisdatasyn', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{synDate:1}
    }) && loadData('gisdatasyn');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">地图配置</a>
            <i class="right-arr"></i>
            <a href="javascript:;">工程同步记录</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建"
                   ng-click="addRow('gisdatasyn') && openWindow('edit');"/>
            <input type="button" class="zs-btn orange" value="编辑"
                   ng-click="editRow('gisdatasyn', gisdatasyn.sRows[0]) && openWindow('edit')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                   ng-click="delEntitys('gisdatasyn')"/>
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
            <div class="link item"
                 data-ng-init="iniTab('gisdatasyn', 'all', 'selected');">
                <a ng-click="setTab('gisdatasyn', 'all') && setQueryObject('gisdatasyn','state','null') && loadData('gisdatasyn')"
                   class="{{tabs['gisdatasyn'].tabClass['all']}}">全部</a>
                <a ng-click="setTab('gisdatasyn', '01') && setQueryObject('gisdatasyn','state','01') && loadData('gisdatasyn')"
                   class="{{tabs['gisdatasyn'].tabClass['01']}}">成功</a>
                <a ng-click="setTab('gisdatasyn', '02') && setQueryObject('gisdatasyn','state','02') && loadData('gisdatasyn')"
                   class="{{tabs['gisdatasyn'].tabClass['02']}}">失败</a>
            </div>

            <div class="tool item">
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="同步源" ng-model="gisdatasyn.queryObject['source']"/>
                </span>
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="同步人"
                           ng-model="gisdatasyn.queryObject['synUserName']"/>
                </span>
            </div>
            <div class="operation item">
                <a class="ope-1" ng-click="loadData('gisdatasyn')"></a>
                <a class="ope-2"></a>
            </div>
            <div class="switch">

            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                            <tr>
                                <th>
                                    <input id="allCheckbox" type="checkbox"
                                           ng-click="selectAll('gisdatasyn','allCheckbox');"/>
                                </th>
                                <th>同步源</th>
                                <th>同步时间</th>
                                <th>同步人</th>
                                <th>状态</th>
                                <th>报告</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr ng-repeat="r in gisdatasyn.datas">
                                <td>
                                    <input type="checkbox"
                                           ng-click="selectRow('gisdatasyn',r);"
                                           ng-model="r.selected"/>
                                </td>
                                <td>
                                    <a ng-click="editRow('gisdatasyn',r) && openWindow('edit');">
                                        <label ng-bind="r.source"></label>
                                    </a>
                                </td>
                                <td>
                                    <a ng-click="editRow('gisdatasyn',r) && openWindow('edit');">
                                        <label ng-bind="r.synDate | asDate | date:'yyyy-MM-dd HH时'"></label>
                                    </a>
                                </td>
                                <td>
                                    <a ng-click="editRow('gisdatasyn',r) && openWindow('edit');">
                                        <label ng-bind="r.synUserName"></label>
                                    </a>
                                </td>
                                <td>
                                    <a ng-click="editRow('gisdatasyn',r) && openWindow('edit');">
                                        <label ng-bind="r.stateName"></label>
                                    </a>
                                </td>
                                <td>
                                    <a ng-click="editRow('gisdatasyn',r) && openWindow('edit');">
                                        <label ng-bind="r.report"></label>
                                    </a>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gisdatasyn'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="工程同步记录编辑" width='560px' height='286px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
                        <tr>
                            <td class="text" width="20%">同步源</td>
                            <td class="left" width="30%">
                                <input type="text" ng-model="gisdatasyn.editRow.source" class="zs-input"/>
                            </td>
                            <td class="text" width="20%">同步时间</td>
                            <td class="left" width="30%">
                                <ag-Datebox id='fi_synDate' editable='false' showcurday='true'
                                            class="zs-input" style="width:175px;height: 28px"
                                            ng-model="gisdatasyn.editRow.synDate">
                                </ag-Datebox>
                            </td>
                        </tr>
                        <tr>
                            <td class="text" width="20%">同步人</td>
                            <td class="left" width="30%">
                                <input type="text" ng-model="gisdatasyn.editRow.synUserName" class="zs-input"/>
                            </td>
                            <td class="text" width="20%">状态</td>
                            <td class="left" width="30%">
                                <input type="text" ng-model="gisdatasyn.editRow.state" class="zs-input"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="text" width="20%">报告</td>
                            <td colspan="3" class="left" width="80%">
                                <input type="text" ng-model="gisdatasyn.editRow.report" class="zs-input"/>
                            </td>
                        </tr>
                        </tbody>
                        <tfoot>
                        <tr>
                            <td colspan="4">
                                <input type="button" name="ok" value="保存" class="zs-btn c-red"
                                       ng-click="formValidate(form) && save('gisdatasyn', gisdatasyn.editRow, saveCloseWindow)"/>
                                <input type="button" name="ok" value="取消" class="zs-btn c-green"
                                       ng-click="closeWindow('edit')"/>
                            </td>
                        </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>